package cn.itsource.user.mapper;

import cn.itsource.basic.mapper.BaseMapper;
import cn.itsource.user.domain.User;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Tom
 * @since 2022-09-13
 */
public interface UserMapper extends BaseMapper<User> {

    //邮箱验证中验证是否注册过邮箱
    User findByEmail(String email);
    //手机验证中验证是否注册过手机号
    User findByPhone(String phone);
    //是否绑定过微信
    User findByWxUserPhone(String phone);
    //根据登录信息id查询----寻主实现类中使用
    User findByLogininfoId(Long id);


}
